package com.auxgroup.smarthome.enterpriseapi.responsebody;

import com.alibaba.fastjson.JSONObject;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by qinhong on 2017/3/8.
 */
public class DeviceOnoffline extends AbstractErrorBody {

    private MetaBean meta;
    private List<ObjectsBean> objects;

    public MetaBean getMeta() {        return meta==null?new MetaBean():meta;    }

    public void setMeta(MetaBean meta) {
        this.meta = meta;
    }

    public List<ObjectsBean> getObjects() {
        return objects==null?new ArrayList<>():objects;
    }

    public void setObjects(List<ObjectsBean> objects) {
        this.objects = objects;
    }

    public static class ObjectsBean {

        private int timestamp;
        private String type;
        private JSONObject payload;

        public int getTimestamp() {
            return timestamp;
        }

        public void setTimestamp(int timestamp) {
            this.timestamp = timestamp;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public JSONObject getPayload() {
            return payload;
        }

        public void setPayload(JSONObject payload) {
            this.payload = payload;
        }
    }


}
